﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Admin.业务界面;
using Admin.登录;
using Sunny.UI;

namespace Admin.主界面
{
    public partial class 管理员主界面2 : UIForm
    {
        public 管理员主界面2()
        {
            InitializeComponent();
        }

        private void uiSymbolButton1_Click(object sender, EventArgs e)
        {
            自动分配 f1 = new 自动分配();
            f1.ShowDialog();
        }

        private void uiSymbolButton7_Click(object sender, EventArgs e)
        {
            手动分配 f1 = new 手动分配();
            f1.ShowDialog();
        }

        private void uiSymbolButton3_Click(object sender, EventArgs e)
        {
            学生数据 f1 = new 学生数据();
            f1.ShowDialog();
        }

        private void uiSymbolButton2_Click(object sender, EventArgs e)
        {
            导师数据 f1 = new 导师数据();
            f1.ShowDialog();
        }

        private void uiSymbolButton4_Click(object sender, EventArgs e)
        {
            管理员数据 f1 = new 管理员数据();
            f1.ShowDialog();
        }

        private void uiSymbolButton5_Click(object sender, EventArgs e)
        {
            config config = new config();
            config.ShowDialog();
        }

        private void uiSymbolButton6_Click(object sender, EventArgs e)
        {
            Result result = new Result();
            result.ShowDialog();
        }

        private void uiSymbolButton8_Click(object sender, EventArgs e)
        {
            login();
        }

        private void 管理员主界面2_Shown(object sender, EventArgs e)
        {
            login();
        }

        private void login()
        {
            this.Visible = false; ;
            Login frm_login = new Login();
            if (frm_login.ShowDialog() == DialogResult.OK)
            {
                this.Visible = true;
            }
            else
                this.Close();
        }

    }
}
